package student.aistar.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import student.aistar.mapper.IndexMapper;
import student.aistar.model.entity.Navclass;
import student.aistar.model.entity.Navpro;
import student.aistar.model.entity.Product;
import student.aistar.service.IIndexService;

import java.util.List;

/**
 * 本类用来演示:
 *
 * @author: qinFeng
 * @date: 2021/10/3 15:55
 */
@Service
public class IndexServiceImpl implements IIndexService {
    @Autowired
    IndexMapper indexMapper;
    @Override
    public List<Navclass> navClassList() {
        return indexMapper.selectNavClass();
    }


    @Override
    public List<Navpro> navProList(Integer id) {
        return indexMapper.selectNavProByNavId(id);
    }

    @Override
    public List<Product> indexProductData(Integer id) {
        return indexMapper.productLIstLimitEight(id);

    }
}
